import request from '@/utils/request'

// 查询标准规范审批处审查列表
export function listTecreview(query) {
  return request({
    url: '/standard/tecreview/list',
    method: 'get',
    params: query
  })
}

// 查询标准规范审批处审查详细
export function getTecreview(sid) {
  return request({
    url: '/standard/tecreview/' + sid,
    method: 'get'
  })
}

// 新增标准规范审批处审查
export function addTecreview(data) {
  return request({
    url: '/standard/tecreview',
    method: 'post',
    data: data
  })
}

// 修改标准规范审批处审查
export function updateTecreview(data) {
  return request({
    url: '/standard/tecreview',
    method: 'put',
    data: data
  })
}

// 删除标准规范审批处审查
export function delTecreview(sid) {
  return request({
    url: '/standard/tecreview/' + sid,
    method: 'delete'
  })
}

// 导出标准规范审批处审查
export function exportTecreview(query) {
  return request({
    url: '/standard/tecreview/export',
    method: 'get',
    params: query
  })
}

//====================================== private start ===============================================

// 查询标准规范附件
export function getUploadFiles(sid) {
  return request({
    url: '/standard/tecreview/uploadfiles/' + sid,
    method: 'get'
  })
}

// 附件上传新增
export function addUploadFile(data) {
  return request({
    url: '/standard/tecreview/attachment/add',
    method: 'post',
    data: data
  })
}

// 附件上传修改
export function updateUploadFile(data) {
  return request({
    url: '/standard/tecreview/attachment/update',
    method: 'post',
    data: data
  })
}

// 附件上传删除
export function delUploadFile(data) {
  return request({
    url: '/standard/tecreview/attachment/delete',
    method: 'post',
    data: data
  })
}


//====================================== private end ===============================================
